configs = {
    # 参考：https://flask-sqlalchemy.palletsprojects.com/en/2.x/config/
    'SQLALCHEMY_DATABASE_URI' : 'mysql+pymysql://root:123456@localhost:3306/testFlask',
    'SQLALCHEMY_TRACK_MODIFICATIONS' : False
}

from flaskApp import app
for (k, v) in configs.items() :
    app.config[k] = v